package com.mi.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.orm.hibernate5.HibernateTemplate;
import org.springframework.stereotype.Repository;

import com.mi.dao.AdminDao;
import com.mi.entity.Admin;

 
@Repository   
public class AdminDaoImpl  implements AdminDao {
   
	@Resource  
 
	private HibernateTemplate template;
	
	public List<Admin> findAllAdmin() {

			
		return (List<Admin>) template.find("from Admin");
	}

}
